package com.xyz.cinema.entity;

import java.util.List;

/**
 * @author ��
 * @Date 2020��8��27��
 */
public class PageBean<T> {
	private int currentPage = 1;	//��ǰҳ
	private int pageCount = 4;	//ÿҳ��ʾ���ٸ�
	private int totalPage; //��ҳ��
	private int totalCount;	//�ܼ�¼��
	private List<T> pageList;
	
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage() {
		if(totalCount%pageCount == 0)
			totalPage = totalCount / pageCount;
		else
			totalPage = totalCount / pageCount + 1;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public List<T> getPageList() {
		return pageList;
	}
	public void setPageList(List<T> pageList) {
		this.pageList = pageList;
	}
}
